package cn.appsys.service.dev.appinfo;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appsys.dao.dev.appinfo.AppInfoMapper;
import cn.appsys.pojo.AppInfo;

@Service("appinfoService")
public class AppInfoServiceImpl implements AppInfoService {

	@Resource
	private AppInfoMapper appInfoMapper;

	@Override
	public List<AppInfo> getAppInfoList(String softwareName, Integer status, Integer flatformId, Integer categoryLevel1,
			Integer categoryLevel2, Integer categoryLevel3,Integer currentNo,Integer rowPageNo) {
		return appInfoMapper.getAppInfoList(softwareName, status, flatformId, categoryLevel1, categoryLevel2, categoryLevel3,currentNo,rowPageNo);
	}

	@Override
	public Integer getAppInfoCount(String softwareName, Integer status, Integer flatformId, Integer categoryLevel1,
			Integer categoryLevel2, Integer categoryLevel3) {
		return appInfoMapper.getAppInfoCount(softwareName, status, flatformId, categoryLevel1, categoryLevel2, categoryLevel3);
	}

	@Override
	public AppInfo getAppInfo(AppInfo appinfo) {
		return appInfoMapper.getAppInfo(appinfo);
	}

	@Override
	public int addAppInfo(AppInfo appinfo) {
		return appInfoMapper.addAppInfo(appinfo);
	}

	@Override
	public int delfile(AppInfo appinfo) {
		return appInfoMapper.delfile(appinfo);
	}

	@Override
	public int appinfoModify(AppInfo appinfo) {
		return appInfoMapper.appinfoModify(appinfo);
	}

	@Override
	public AppInfo queryappinfoview(Integer id) {
		return appInfoMapper.queryappinfoview(id);
	}

	@Override
	public int delapp(Integer id) {
		return appInfoMapper.delapp(id);
	}

	@Override
	public int delappversion(Integer id) {
		return appInfoMapper.delappversion(id);
	}

	@Override
	public int saleSwitchPgUp(Integer id) {
		return appInfoMapper.saleSwitchPgUp(id);
	}

	@Override
	public int saleSwitchPgDn(Integer id) {
		return appInfoMapper.saleSwitchPgDn(id);
	}
}
